package com.zx.designpattern.model.http.volleyrequest;

import android.content.Context;
import android.util.Log;

import com.midcent.networklib.interfac.HttpBaseNoCachedRequest;

import org.json.JSONException;
import org.json.JSONObject;

import static com.zx.designpattern.model.http.URLUtils.GET_TAG_LIST;

/**
 * zx
 */
public class TagsRequest extends HttpBaseNoCachedRequest {

    public TagsRequest(Context context) {
        super(context);
    }

    @Override
    public void init() {
        this.url = GET_TAG_LIST;
    }

    @Override
    public void onSuccessReponse(Object response) {

    }

    @Override
    public void onErrorReponse(String errormsg, String errtype) {
    }


    public String setContentBody() {
        postpara = new JSONObject();
        try {
            postpara.put("orderBy", "id asc");
        } catch (JSONException e) {
            Log.e(TAG, e.toString());
        }
        return postpara.toString();
    }

}
